package com.woniuxy.oldmanapi.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniuxy.oldmanapi.entity.Category;
import com.woniuxy.oldmanapi.entity.Cost;
import com.woniuxy.oldmanapi.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryService {
    @Autowired
    CategoryMapper categoryMapper;
    public List<Category> selectCategory() {

        List<Category> consulterList = categoryMapper.selectAll();

        return consulterList;
    }
}
